package com.eastedu.repository.file;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

/**
 * 文件状态，包括：上传中、已上传、已删除、已归档
 *
 * @author superman
 */
@Getter
public enum FileState implements IEnum<Integer> {
    /**
     * Failed file state.
     */
    FAILED(-1, "文件处理失败"),
    /**
     * 上传中
     */
    UPLOADING(0, "文件上传中"),
    /**
     * 已上传
     */
    UPLOADED(1, "文件已上传"),
    /**
     * 已归档
     */
    ARCHIVED(2, "文件已归档"),
    /**
     * 已删除
     */
    DELETED(3, "文件已删除");

    private final Integer value;
    private final String description;

    FileState(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

}
